import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import TodoView from '../views/TodoView.vue'
import MyProfileView from '../views/MyProfileView.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/todolist',
      name: 'todolist',
      component: TodoView
    //   component: () => import('../views/TodoView.vue')
    },
    {
        path: '/MyProfile',
        name: 'MyProfile',
        component: MyProfileView
        // component: () => import('../views/MyProfileView.vue')
      },
  ]
})

export default router
